<script setup lang="ts">
import {healthRecommend,} from "@/http/home";
import {ref} from "vue";

const onClickLeft = () => history.back();

// 健康中心请求
let content = ref<any[]>([''])
healthRecommend({pageNum: 1, pageSize: 10, dictLabel: '健康中心'}).then(res => {
    console.log(res)
    if (res.code === 200) {
        // console.log(res.rows)
        content.value = res.rows
        // console.log(content.value[0].content)

    }

})
// const html = content.value[0].content
// console.log(content)


</script>

<template>
    <div>

        <van-nav-bar
                :placeholder=true
                title="心理健康中心"
                left-text="返回"
                left-arrow
                @click-left="onClickLeft"
        />
        <!--    服务功能-->
        <div class="service" v-html="content[0].content">
        </div>
    </div>
</template>

<style scoped>
.service {
    width: 90%;
    margin: 0 auto;
}
</style>